package com.mimose.component.chains.entity.response;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description 链路处理返回体（默认）
 * @Author ccy
 * @Date 2019/10/17 14:29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public final class Response<B extends ResponseBaseDto> extends AbsResponse<B> {

    private B response;

    @Override
    public Response end(boolean done, B data) {
        this.response = data;
        this.done = done;
        return this;
    }
}
